"Smooth Scrolling locomotive"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html>
<html>
<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
<link
href="https://fonts.googleapis.com/css2?family=MuseoModerno:wght@600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="src/styles.css" />
</head>
<body data-scroll-container>
<div class="app" data-scroll-section>
<h1 class="h1" data-scroll data-scroll-sticky data-scroll-target=".app">
<span class="line">
<span class="line-inner">Worldwide</span>
</span>
<span class="line">
<span class="line-inner">pizza</span>
</span>
</h1>
<div class="main">
<img
src="https://images.unsplash.com/photo-1571407921708-4202261ea9e9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"
alt="pizza"
data-scroll
data-scroll-speed="1"
/>
<img
class="img-abs"
src="https://images.unsplash.com/photo-1534963063257-6b65b54e438b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
* {
margin: 0;
padding: 0;
}
*,
*::after,
*::before {
box-sizing: border-box;
}
html {
box-sizing: border-box;
cursor: default;
font-size: 62.5%;
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: none;
-webkit-font-smoothing: subpixel-antialiased;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: "MuseoModerno", cursive;
font-weight: 600;
font-size: 6vw;
line-height: 1.1;
min-height: 100vh;
height: -webkit-fill-available;
max-width: 100vw;
overscroll-behavior: none;
-webkit-overflow-scrolling: none;
overflow-x: hidden;
color: rgb(20, 20, 20);
}
.app {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: